<template>
    <div class="column-container">
        <slot></slot>
    </div>
</template>

<script>
export default {
    name: 'ColumnLayout'
};
</script>

<style scoped lang="less">
.column-container {
    width: 100%;
    height: 100%;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    > * {
        /* 让每个盒子自动调整宽度 */
        flex: 1 1 auto;
        box-sizing: border-box;
    }
}
</style>
